package cn.com.wangluotongxin.merchants.mapper;

import cn.com.wangluotongxin.merchants.model.MerchantsMenu;
import cn.com.wangluotongxin.merchants.vo.DMerchantsMenuVo;
import cn.com.wangluotongxin.merchants.vo.MenuVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商户管理-菜单权限 Mapper 接口
 * </p>
 *
 * @author AutoGenerator
 * @since 2024-04-26
 */
@Mapper
public interface MerchantsMenuMapper extends BaseMapper<MerchantsMenu> {

    List<MerchantsMenu> getByUser(@Param("userId") Integer userId);

    List<MerchantsMenu> getAllMenus();

    List<DMerchantsMenuVo> getList();

    DMerchantsMenuVo detail(@Param("id") Integer id);

    List<MenuVo> getTreeList();

    void upMenuParentId();
}
